package com.rockcent.mall.lib.constants;

/**
 * Created by zhangjh on 2017/5/23.
 */
public enum SysMessageConstants {

    M2M_MALL_MEMBER_APTITUDE_AUDIT_PASSS("200001","MALL", "/mall_new/setting/basic_settings", "/mall_new/setting/basic_settings", "/mall/member/aptitude/info_audit", "您的资质认证已通过，马上去完善平台其余信息设置吧！"),
    M2M_MALL_MEMBER_APTITUDE_AUDIT_UNPASSS("200002", "MALL","/mall_new/qualification", "/mall_new/qualification", "/mall/member/aptitude/info_audit", "您的资质认证未能通过审核，备注：{0}，请修改后重新提交审核。"),
    M2M_NOT_MALL_MEMBER_RECHARGE_AUDIT_PASSS("200003","MALL", "/mall_new/member/account", "/mall_new/member/account", "mall/member/recharge/audit", "您的会员账户已开通成功。"),
    M2M_NOT_MALL_MEMBER_RECHARGE_AUDIT_UNPASSS("200004","MALL", "/mall_new/member/account", "/mall_new/member/account", "mall/member/recharge/audit", "您的会员账户开通失败，备注：{0}，请确认后重新开通。"),
    M2M_MALL_MERCHANT_COUPON_SAVE_PENDING_AUDIT("200005","MALL", "/mall_new/market/card_voucher_audit?status=WAIT_AUDIT", "/mall_new/market/card_voucher_audit", "/merchant/coupon/save", "您有新的积分卡券待审核。"),
    M2M_MALL_MERCHANT_CERTIFY_SAVE_PENDING_AUDIT("200006","MALL", "/mall_new/merchant_audit/index/false", "/mall_new/merchant_audit/index", "/merchant/certify/save", "您有新入驻的商户待审核。"),
    M2M_MALL_MERCHANT_PRODUCT_SAVE_PENDING_AUDIT("200007","MALL", "/mall_new/productaudit", "/mall_new/productaudit", "/merchant/product/save", "您有新的产品待审核。"),
    M2M_MALL_MERCHANT_PRODUCT_FRAME_STATUS_UPDATE("200008","MALL", "/mall_new/specialsubject_management?title={0}", "/mall_new/specialsubject_management", "/merchant/product/frame/status/update", "您发布的{0}专题内有商品已下架。"),
    M2M_MALL_MERCHANT_APPLY_WITHDRAW("200009", "MALL","/mall_new/finance/drawings_audit/index/wait_audit", "/mall_new/finance/drawings_audit/index", "/merchant/apply/withdraw", "您有新的商户提现申请待审核。"),
    M2M_MALL_MERCHANT_RECHARGE_SAVE_PENDING_AUDIT("200010","MALL", "/mall_new/finance/recharge_audit/WAIT", "/mall_new/finance/recharge_audit", "/merchant/recharge/save", "您有新的商户线下充值申请待审核。"),
    M2M_MALL_MEMBER_RECHARGE_AUDIT_UNPASSS("200011","MALL", "/mall_new/member/recharge", "/mall_new/member/recharge", "/merchant/recharge/audit", "您于{0}的￥{1}充值系统审核未通过。备注：{2}，请确认后重新提交审核。"),
    M2M_MALL_MERCHANT_RECHARGE_BATCH_SAVE("200012", "MALL","/mall_new/member/account", "/mall_new/member/account", "/mall/member/recharge/batch/save", "{0}，系统充值/赠送￥{1}已成功到账，请查询您的账户余额，有疑问请联系平台客服{2}。"),
    M2M_MALL_CASH_COUPON_WALLET_RECEIVE_OVER("200013", "MALL", "/mall_new/market/present_money/index/ISSUED","/mall_new/market/present_money/index","/v2/customer/cash/coupon/receive","{0}已被领取完毕。"),
    M2M_MALL_CASH_COUPON_WALLET_USE_OVER("200014", "MALL", "/mall_new/market/present_money/index/ISSUED","/mall_new/market/present_money/index","/v2/order/commit","{0}已被使用完毕。"),
    M2M_MALL_MERCHANT_PRODUCT_UPDATE_PENDING_AUDIT("200015","MALL", "/mall_new/productaudit", "/mall_new/productaudit", "/merchant/product/update", "您有新的产品待审核。"),
    M2M_MALL_MERCHANT_COUPON_UPDATE_PENDING_AUDIT("200016","MALL", "/mall_new/market/card_voucher_audit?status=WAIT_AUDIT", "/mall_new/market/card_voucher_audit", "/merchant/coupon/update", "您有新的积分卡券待审核。"),



    M2B_MERCHANT_AUDIT_PASS("100001","MERCHANT", "/business/product/index/selling", "/business/product/index", "/mall/merchant/certify/update", "您的实名认证已通过，马上去发布产品吧！"),
    M2B_MERCHANT_AUDIT_UNPASS("100002","MERCHANT", "/business/merchant/merchantCerApplication", "/business/merchant/merchantCerApplication", "/mall/merchant/certify/update", "您的实名认证审核未通过，备注：{0}，请修改后重新提交审核。"),
    M2B_PRODUCT_AUDIT_PASS("100003", "MERCHANT","/business/product/index/selling", "/business/product/index", "/mall/product/audit/update", "产品[{0}]已通过审核，上架成功。"),
    M2B_PRODUCT_AUDIT_UNPASS("100004", "MERCHANT","/business/product/index/wait_audit", "/business/product/index", "/mall/product/audit/update", "产品[{0}]未通过平台审核，备注：{1}，请修改后重新提交审核。"),
    M2B_INTEGRATION_COUPON_AUDIT_PASS("100005", "MERCHANT","/business/giftPacket/cardvouchertable?name={0}&status=ISSUED", "/business/giftPacket/cardvouchertable", "/mall/integration/coupon/audit", "{0}投放积分渠道推广申请已通过平台审核。"),
    M2B_INTEGRATION_COUPON_AUDIT_UNPASS("100006","MERCHANT", "/business/giftPacket/cardvouchertable?name={0}&status=WAIT_AUDIT", "/business/giftPacket/cardvouchertable", "/mall/integration/coupon/audit", "{0}投放积分渠道的申请未能通过审核，备注：{1}"),
    M2B_MERCHANT_APPLY_WITHDRAW_UNPASS("100008","MERCHANT", "/business/my_money/dalance_details", "/business/my_money/dalance_details", "/mall/audit/merchant/apply/withdraw", "您于{0}申请的提现未能通过平台审核，提现冻结金额已解冻；备注：{1}"),
    M2B_CONFIRM_MERCHANT_APPLY_WITHDRAW_PASS("100009","MERCHANT", "/business/my_money/index", "/business/my_money/index", "/mall/confirm/merchant/apply/withdraw", "您于{0}申请的提现已成功，请查询您的银行账户余额。"),
    M2B_CONFIRM_MERCHANT_APPLY_WITHDRAW__UNPASS("100010","MERCHANT", "/business/my_money/dalance_details", "/business/my_money/dalance_details", "/mall/confirm/merchant/apply/withdraw", "您于{0}申请的提现打款失败，冻结金额已解冻，请查明原因后重新提出提现申请，备注：{1}"),
    M2B_MERCHANT_RECHARGE_AUDIT_PASS("100011", "MERCHANT","/business/my_money/index", "/business/my_money/index", "/v1/merchant/recharge/audit", "您于{0}线下汇款的￥{1}已充值成功，请查询您的账户余额，有疑问请联系平台客服{2}。"),
    M2B_MERCHANT_RECHARGE_AUDIT_UNPASS("100012","MERCHANT", "/business/my_money/index", "/business/my_money/index", "/v1/merchant/recharge/audit", "您于{0}线下汇款的￥{1}充值失败，备注：{2}；如有疑问请联系平台客服#平台客服电话{3}。"),
    M2B_MERCHANT_MALL_RECHARGE_SAVE_SUCCESS("100013","MERCHANT", "/business/my_money/index", "/business/my_money/index", "/v1/merchant/mall/recharge/save", "{0}；系统充值/赠送{1}已成功到账，请查询您的账户余额，有疑问请联系平台客服{2}。"),
    SYS_CANCELORDER_OF_UNPAYEDEXPIRED("100014", "MERCHANT","/business/order/index/all?orderNum={0}", "/business/order/index", "", "{0}编号的订单超过支付有效期已自动取消。"),
    SYS_CANCELORDER_OF_WAITSHIPPED("100015", "MERCHANT","/business/order/index/all?orderNum={0}", "/business/order/index", "", "{0}编号的订单超过7天未发货，系统已自动取消该订单，订单资金自动退还到用户的钱包。"),
    SYS_CANCELORDER_OF_SERVICEPRODUCT_EXPIRED("100016", "MERCHANT","/business/order/index/all?orderNum={0}", "/business/order/index", "", "{0}编号的订单已超过有效期未使用，系统已自动取消该订单，订单资金自动退还到用户的钱包。"),
    SYS_CANCELORDER_OF_WAITSHOPPICKPUP("100017", "MERCHANT","/business/order/index/all?orderNum={0}", "/business/order/index", "", "{0}编号的订单已超过有效期未前往门店提货，系统已直动取消该订单，订单资金自动退还到用户的钱包。"),
    SYS_GIFT_PACKAGE_EXPIRED("100018", "MERCHANT","/business/giftPacket/index/s5_finished?keyword={0}", "/business/giftPacket/index", "", "{0}礼包活动时间已结束。"),
    SYS_GIFT_PACKAGE_EXPIRED_CANNOT_SELL("100019", "MERCHANT","/business/giftPacket/index/s5_finished?keyword={0}", "/business/giftPacket/index", "", "{0}礼包内{1}{2}，礼包暂时为不可售状态，产品恢复正常状态后，礼包自动正常出售。"),
    SYS_PRODUCT_EXPIRED("100020", "MERCHANT","/business/product/index/expired?keyword={0}", "/business/product/index", "", "{0}超过有效期，系统已自动下架该产品。"),
    SYS_COUPON_SELL_OUT("100021", "MERCHANT","/business/giftPacket/cardvouchertable", "/business/giftPacket/cardvouchertable", "", "{0}卡券已被领完。"),
    SYS_COUPON_EXPIRED("100022", "MERCHANT","/business/giftPacket/cardvouchertable?name={0}&status=EXPIRED", "/business/giftPacket/cardvouchertable", "", "{0}卡券已过期。");



    private String msgId;
    private String terminalType;
    private String frontendUrl;
    private String frontendResourceUrl;
    private String backendUrl;
    private String content;

    SysMessageConstants(String msgId, String terminalType, String frontendUrl, String frontendResourceUrl, String backendUrl, String content) {
        this.msgId = msgId;
        this.terminalType = terminalType;
        this.frontendUrl = frontendUrl;
        this.frontendResourceUrl = frontendResourceUrl;
        this.backendUrl = backendUrl;
        this.content = content;
    }

    public String getTerminalType() {
        return terminalType;
    }

    public void setTerminalType(String terminalType) {
        this.terminalType = terminalType;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getFrontendUrl() {
        return frontendUrl;
    }

    public void setFrontendUrl(String frontendUrl) {
        this.frontendUrl = frontendUrl;
    }

    public String getFrontendResourceUrl() {
        return frontendResourceUrl;
    }

    public void setFrontendResourceUrl(String frontendResourceUrl) {
        this.frontendResourceUrl = frontendResourceUrl;
    }

    public String getBackendUrl() {
        return backendUrl;
    }

    public void setBackendUrl(String backendUrl) {
        this.backendUrl = backendUrl;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "SysMessageConstants{" +
                "msgId='" + msgId + '\'' +
                ", terminalType='" + terminalType + '\'' +
                ", frontendUrl='" + frontendUrl + '\'' +
                ", frontendResourceUrl='" + frontendResourceUrl + '\'' +
                ", backendUrl='" + backendUrl + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
